//
//  MyTableViewCell.m
//  UI14_HomeWork_豆瓣
//
//  Created by Bodi on 16/6/25.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "MyTableViewCell.h"

#import "MyModel.h"
@interface MyTableViewCell ()

@property (nonatomic, retain)UILabel *lineLabel;


@end

@implementation MyTableViewCell


-(void)dealloc{
    [_nameLabele release];
    [_lineLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.nameLabele = [[UILabel alloc]init];
    [self.contentView addSubview:_nameLabele];
        
        self.lineLabel = [[UILabel alloc]init];
        [self.contentView addSubview:_lineLabel];

        
        
    }
    return self;

}



- (void)layoutSubviews{
    [super layoutSubviews];
    self.nameLabele.frame = CGRectMake(20, 20, 380, 80);
//    self.nameLabele.backgroundColor = [UIColor cyanColor];
    self.nameLabele.font = [UIFont systemFontOfSize:25.0f];
//    self.nameLabele.font = [UIFont systemFontOfSize:20.0f];
    self.lineLabel.frame = CGRectMake(20, 90, 380, 1);
    self.lineLabel.backgroundColor = [UIColor grayColor];
        



}


- (void)setModel:(MyModel *)model{
    if (_model != model) {
        [_model release];
        _model =[model retain];
    }
    
//    _nameLabele.text = model.text;
    
    

}








@end
